import { Component, OnInit ,Inject} from '@angular/core';
import {MailService} from '../service/mail.service'
@Component({
  selector: 'app-page01',
  templateUrl: './page01.component.html',
  styleUrls: ['./page01.component.css']
})
export class Page01Component implements OnInit {

    constructor(@Inject(MailService) private MailService) { }

    ngOnInit() {
    }

    onClick(val,event){
        console.log('onclick',val,event)
    }

    onEnter(e,val){
        console.log('onenter',e,val)
    }
    update(event){
        console.log('handing upt in page01',event)
    }
    onSubmit(val){
        console.log(val)
    }
    address={
        province:'福建',
        city:'厦门'
    }
    message='heihei'
    context='yoyou'

}
